Optimal. Leaf size=26 \[ \frac{1}{3} x^3 (-a-b x)^{-n} (a+b x)^n \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0031433, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087, Rules used = {23, 30} \[ \frac{1}{3} x^3 (-a-b x)^{-n} (a+b x)^n \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 23
Rule 30
Rubi steps
\begin{align*} \int x^2 (-a-b x)^{-n} (a+b x)^n \, dx &=\left ((-a-b x)^{-n} (a+b x)^n\right ) \int x^2 \, dx\\ &=\frac{1}{3} x^3 (-a-b x)^{-n} (a+b x)^n\\ \end{align*}
Mathematica [A] time = 0.0049107, size = 26, normalized size = 1. \[ \frac{1}{3} x^3 (-a-b x)^{-n} (a+b x)^n \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 25, normalized size = 1. \begin{align*}{\frac{{x}^{3} \left ( bx+a \right ) ^{n}}{3\, \left ( -bx-a \right ) ^{n}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.23836, size = 11, normalized size = 0.42 \begin{align*} \frac{1}{3} \, \left (-1\right )^{n} x^{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.85219, size = 26, normalized size = 1. \begin{align*} \frac{1}{3} \, x^{3} \cos \left (\pi n\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 36.9575, size = 19, normalized size = 0.73 \begin{align*} \frac{x^{3} \left (- a - b x\right )^{- n} \left (a + b x\right )^{n}}{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.40441, size = 7, normalized size = 0.27 \begin{align*} \frac{1}{3} \, x^{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]